var w1 = document.querySelector("#w1");
var w2 = document.querySelector("#w2");
var ct = document.querySelectorAll(".btn1");
var cw = document.querySelectorAll(".c5");
var data_zh = ['你知道吗', '六月', '一日', '星期一', '是', '儿童节','小玖牛逼'];
var data_en = ['do you know', 'June', 'One day', 'Monday', 'Yes', 'Children\'s day','Small nine cow force'];
function zhToEn(){
	for(var i = 0;i<data_zh.length;i++){
		for(var j = 0;j<data_en.length;j++){
			if(w1.value == data_zh[j]){
				w2.innerHTML = data_en[j]
			}else if(w1.value == data_en[j]){
				w2.innerHTML = data_zh[j];
			}
		}
	}
}
function col(){
	for (var i=0;i<cw.length;i++){
		if(cw[i].style.background == "rgb(90, 170, 255)"){
			cw[i].style.background = "rgb(221, 221, 221)";
		}else if(cw[i].style.background == "rgb(221, 221, 221)"){
			cw[i].style.background = "rgb(90, 170, 255)";
		}
	}
}
